Page({
  data: {
    PageCur: 'basics'
  },
  onLoad: function (option) { 
    //console.log("a");
    
    var myuid=wx.getStorageSync('userid');
    var aa=wx.getStorageSync('useriddd');

    //console.log("登录ID"+myuid);
    //console.log(aa);
    if(myuid!='')
    {  
        if(myuid=="8888")
        {
            wx.redirectTo({
              url: '../cw/index',
            })
        }
    }
    else
    {
        wx.redirectTo({
          url: '../login/index',
        })
    }
    
    //this.data.userid = wx.getStorageSync('memberid');
    //this.data.corpid=wx.getStorageSync('corpid');
    
    },
  NavChange(e) { 
    this.setData({
      PageCur: e.currentTarget.dataset.cur
    })
  },
  onShareAppMessage() {
    return {
      title: '执法管理系统',
      imageUrl: '/images/share.jpg',
      path: '/pages/index/index'
    }
  },
  
})